package top.kuxiao.crmserver.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 联系人
 * </p>
 *
 * @author xiaozhang
 * @since 2022-01-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Contact implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "cont_id", type = IdType.AUTO)
    private Integer contId;

    /**
     * 联系人名称
     */
    private String contName;

    /**
     * 联系人性别
     */
    private String contSex;

    /**
     * 职位
     */
    private String contPosition;

    /**
     * 办公电话
     */
    private Long contOfficeTelephone;

    /**
     * 手机号
     */
    private Long contTelephone;

    /**
     * 备注
     */
    private String contRemarks;

    /**
     * 客户编号(外键)
     */
    private Integer contCustomerId;
    /**
     *客户信息
     */
    @TableField(exist = false)
    private Customer customer;

}
